﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using Kaiser.Infrastructure;
using Kaiser.Modules.Hiner.Models.Consignee;
using Kaiser.Modules.Hiner.Models.Order;
using Kaiser.Modules.Hiner.Models.Product;
using Kaiser.Modules.Hiner.Repositories;
using Kaiser.Modules.Hiner.Services;
using Kaiser.Modules.Hiner.Models.Supplier;

namespace Kaiser.Modules.Hiner
{
    public class HinerModule : Module
    {
        public override string ModuleName
        {
            get { return "Hiner"; }
        }

        public override void Initialize()
        {
            SetupContainer();
        }

        /// <summary>
        /// 设置DI映射
        /// </summary>
        private void SetupContainer()
        {
            DependencyInjector.RegisterType<IConsigneeService, Consignee>();
            DependencyInjector.RegisterType<IOrderService, Order>();
            DependencyInjector.RegisterType<IProductService, Product>();
            DependencyInjector.RegisterType<ISupplierService, Supplier>();
 

        }

        public override string AuthenticationModuleName
        {
            get
            {
                return "Admin";
            }
        }
    }
}
